<?php
defined('BASEPATH') or exit('No direct script access allowed');
?><!DOCTYPE html><html lang="en">
<head>
	<!--加载header文件-->
	<?php
	include_once 'public/views/header.php';
	?>
	<?php
	include_once 'public/home/html/laydate.php';
	include_once 'public/home/html/echarts.php';
	//include_once "public/home/html/alert.php";
	include_once "public/home/html/search-select.php";
	include_once 'public/home/html/mobile_select.php';
	include_once 'public/home/html/select.php';
	?>

	<script src="public/append/layer/layer/layer.js"></script>
	<link rel="stylesheet" href="public/css/edit.css" />
	<link rel="stylesheet" href="cust/css/attendAdd.css" />
	<script src="public/home/js/function.js"></script>
	<script src="cust/js/attendAdd.js?v=20210912"></script>
	<script src="cust/js/goodsUpload.js"></script>
	<script src="public/js/cus_modal.js"></script>
</head>
<style>
	.required{color: red;}
	   body{
				/*background-color:white;*/
			}
			.title-tr th{
				height:50px!important;
			}
			.title-tr i{
				font-size: 22px;
				margin-right:10px;
			}

			.title-tr i{
				font-size: 18px!important;
				margin-right:4px!important;
			}

			.data-box{
		    	width:100px;
		    	height:100px;
		    	border-radius: 4px;
		    	float:left;
		    	margin:10px;
		    	padding:10px;
		    	cursor: pointer;
		    	position: relative;
		    }
		    .tab-item1 .data-box:nth-child(1){
		    	width:100px!important;
		    }
		    .data-box:hover {
		        background-color: #ccc;
		    }
		    .data-box:hover>.banner-prev,.data-box:hover>.banner-next,.data-box:hover>.del-icon {
		        display: block;
		        -webkit-animation: spopIn 0.2s ease-in-out;
		        animation: spopIn 0.2s ease-in-out;
		    }
		    .add-img{
		    	height:80px;
		    	width:80px;
		    	border-radius:4px;
		    }
		    .document-img{
		    	height:80px;
		    	width:80px;
		    	border-radius:4px;
		    }
		    .del-icon{
				position: absolute;
				font-size:25px;
				color:#dd2727;
				right:0px;
				top:0px;
				cursor: pointer;
		    }
		    .data-box-banner .del-icon{
				position: absolute;
				font-size:25px;
				color:#dd2727;
				right:0px;
				top:0px;
				cursor: pointer;
				display: none;
		    }
		    .banner-prev,.banner-next{
		    	height:20px;
		    	width:20px;
		    	background-color: #999;
		    	text-align: center;
		    	line-height: 20px;
		    	color:white;
		    	position: absolute;
		   		font-size: 12px;
		   		top:40px;
		   		border-radius:2px;
		   		display: none;
		    }
		    .banner-prev{
		    	left:0px;
		    }
		    .banner-next{
		    	right:0px;
		    }
		    .progress{
		    	margin-bottom: 0px!important;
		    }
		    .document-p{
				height:50px;
				width:100%;
				background-color: white;
				position: fixed;
				top:0px;
				padding:0px 20px;
				padding-top:6px!important;
				text-align: center;
				display: none;
				border-bottom:1px solid #CCCCCC;
			}
			.tab-item1{
				background-color:white;
			}



			.searchable-select-dropdown{
				z-index: 9999;
			}
			.required{
				width: 20%!important;
			}

			body::-webkit-scrollbar {display:none}
			
			.radio{
				display: inline;
				width: auto;
				padding-left: 0px;
			}
			.hide1{
				display: none;
			}
			.radio_list{
				margin:10px
			}
			.radio_title{
				margin-top:8px;
			}
			.score{
			    font-weight: 700;
			    margin: 2px 0;
			    color: #555;
			    font-size: 15px;
			}
</style>
<body>
	 <input type="file" id="document-file" style="display: none;" multiple="multiple">

    <!-- 各种资料demo -->
    <div class="data-box-demo hide">
    	<div class="data-box data-box-banner">
    		<i class="icon-remove-sign  del-icon" onclick="delDocument(this)"></i>
    		<a href="" download=""><img src="" alt="" class="document-img"></a>
    		<input type="hidden" class="path">
    		<input type="hidden" class="icon">

    		<!-- 前后 -->
    		<div class="banner-prev" onclick="bannerPrev(this)"><i class="fa fa-angle-left" aria-hidden="true"></i></div>
    		<div class="banner-next" onclick="bannerNext(this)"><i class="fa fa-angle-right" aria-hidden="true"></i></div>
    	</div>
    </div>

	<div class="container">
		<div class="row">
			<input type="hidden" class="url" name="url" value="<?php echo base_url(); ?>">
			<input type="hidden" id="modal_title" value="<?=$title?>" />
			<input type="hidden" id="class_name3" value="<?=estr($attend, 'class_name') ?>" />
			<input type="hidden" id="class_name4" value="<?=$is_show?>" />
			<input type="hidden" id="modal_height" value="450" />
			<input type="hidden" id="can_submit" value="<?=$can_submit?>">
			
			<form id="editForm">
				<input type="hidden" id="is_add" name='is_add' value="<?php echo $is_add?>">
				<input type="hidden"name="class_id" value="<?php if(isset($class_id)){echo $class_id;}else{echo '0';}?>" id="class_id">
				<input type="hidden"  name="teacher_id" value="<?php if(isset($teacher_id)){ echo $teacher_code;}else{echo '0';}?>" id="teacher_id" >
				<table class='edit_table'>
				
					<th colspan="4" class="th-title">
						<i class="icon-dashboard"></i>听课简要(<span class="required">*</span>必填)
					</th>
					<tr>
						<th class="required">学年<span class="required">*</span></th>
						<td>
							<input type="text"  placeholder="请输入学年" name="attend2" id="attend2" readOnly value="<?php if(isset($attend))echo $attend['academic_year']; if(isset($class_detail['academic_year'])){echo $class_detail['academic_year'];}?>" dataType="*"/>
						</td>
						<th class="required">学期<span class="required">*</span></th>
						<td>
							<input type="text" placeholder="请输入学期" id="attend3" name="attend3" readOnly value='<?php if(isset($attend))echo $attend['semester']; if(isset($class_detail['semester'])){echo $class_detail['semester'];}?>' dataType="*">
						</td>
					</tr>

					<tr>
						<th class="required">授课教师<span class="required">*</span></th>
						
						<!-- <td class='lock'>
							<input type="text" readOnly name="teacher_name readonly_input" class="teacher_name_caption" value="<?=estr($attend, 'teacher_name') ?>" >
						</td> -->
						
						<td >
							<select name="teacher_name" class="teacher_name readonly_select" dataType="*">
								<option value="">请选择...</option>
								<?php foreach ($teacher as $k => $v): ?>
								<option value="<?php echo $v['usercode'] ?>,<?php echo $v['username'] ?>" <?php if($v['username']== estr($attend, 'teacher_name')) echo 'selected="selected"' ?>>[<?php echo $v['usercode'] ?>] <?php echo $v['username'] ?></option>	
								<?php endforeach ?>
							</select>
						</td>

						<th class="required">教师所属单位<span class="required">*</span></th>
						<td>
							<input type="text"  readOnly id="dept_name" name="dept_name" value="<?=estr($attend, 'dept_name') ?>" placeholder="请输入所属单位"  dataType="*">
						</td>
					</tr>

					<tr>
						<th class="required">教师职称<span class="required">*</span></th>
						
					<!-- 	<td class='lock'>
							<input type="text" readOnly name="teacher_title readonly_input" class="teacher_title_caption" value="<?=estr($attend, 'title') ?>" >
						</td> -->
						
						<td class='unlock delselect'>
							<select name="teacher_title" id="teacher_title" class="teacher_title readonly_select" dataType="*">
								<option value="">请选择...</option>
								<?php foreach ($teacher_title as $k => $v): ?>
								<option value="<?php echo $v['value'] ?>" <?php if($v['value']== estr($attend, 'title')) echo 'selected="selected"' ?>> <?php echo $v['value'] ?></option>	
								<?php endforeach ?>
							</select>
						</td>

						<th class="required">教师年龄<span class="required">*</span></th>
						<td>
							<input type="text" name="age_groups" id='age_groups' readOnly value="<?=estr($attend, 'age_groups') ?>" placeholder="请输入教师年龄"  dataType="*">	
						</td>
					</tr>
					<tr>
						<th class="required">教师属性<span class="required">*</span></th>
						
						<!-- <td class='lock'>
							<input type="text" readOnly name="teachers_attribute readonly_input" class="teachers_attribute_caption" value="<?=estr($attend, 'teachers_attribute') ?>" >
						</td> -->
						
						<td class='unlock delselect'>
							<select name="teachers_attribute" id="teachers_attribute" class="teachers_attribute readonly_select" dataType="*">
								<option value="">请选择...</option>
								<?php foreach ($teachers_attribute_list as $k => $v): ?>
								<option value="<?php echo $v['value'] ?>" <?php if($v['value']== estr($attend, 'teachers_attribute')) echo 'selected="selected"' ?>> <?php echo $v['value'] ?></option>	
								<?php endforeach ?>
							</select>
						</td>

						<th class="required">课程名称<span class="required">*</span></th>
							
						<!-- <td class='lock select-style'>
							<input type="text" readOnly name="class_name readonly_input" class="class_name_caption" value="<?=estr($attend, 'class_name') ?>" >
						</td> -->
						
						<td class='unlock delselect select-style'>
							<select name="class_name" id="class_name1" class="class_name readonly_select"  dataType="*">
								<option value="">请选择...</option>
								<?php foreach ($class_list as $k => $v): ?>
								<option value="<?php echo $v['name'] ?>" <?php if($v['name']== estr($attend, 'class_name')) echo 'selected="selected"' ?>>【 <?php echo $v['name'] ?> 】 <?php echo $v['username'] ?> --<?php echo $v['dept_name'] ?></option>	
								<?php endforeach ?>
							

							</select>
							<div class="change-btn" onclick="changeForm()">自定义</div>
						</td>
						
						<td class='input-style hide'>
							<input type="text" id="class_name2" name="class_name"  disabled value="<?=estr($attend, 'class_name') ?>" placeholder="请输入课程名称">
							<div class="change-btn" onclick="changeForm()">自定义</div>
						</td>

						<!-- <th class="required">课程名称</th>
						<td>
							<input type="text" placeholder="请输入课程名称" id="class_name" name="class_name"   value="<?php if(isset($_SESSION[SESS_ASSESS]['class_name'])){echo $_SESSION[SESS_ASSESS]['class_name'];}else if(isset($attend)){echo $attend['class_name'];}else ?>" onclick="gotoSearch1()"  oninput="checkClass()" readOnly unselectable="on" onfocus="this.blur()">
						</td> -->
					</tr>
					<tr>

						<th class="required">课程类型<span class="required">*</span></th>
						
						<!-- <td class='lock'>
							<input type="text" readOnly name="title readonly_input" class="teacher_title_caption" value="<?=estr($attend, 'class_type') ?>" >
						</td> -->
						
						<td class='unlock delselect'>
							<select name="class_type" id="class_type" class="class_type readonly_select" dataType="*">
								<option value="">请选择...</option>
								<?php foreach ($class_type as $k => $v): ?>
								<option value="<?php echo $v ?>" <?php if($v == estr($attend, 'class_type')) echo 'selected="selected"' ?>> <?php echo $v ?></option>	
								<?php endforeach ?>
							</select>
						</td>
						

						<th class="required">听课班级<span class="required">*</span></th>
						<td>
							<input type="text" placeholder="请输入听课班级" id="attend4" name="attend4"  value="<?php if(isset($_SESSION[SESS_ASSESS]['classname'])){echo $_SESSION[SESS_ASSESS]['classname'];}else if(isset($attend)){echo $attend['listen_class'];}?>" dataType="*"> <!-- oninput="checkClass()"  -->
						</td>
					</tr>
					<tr>
						<th class="required">听课地址<span class="required">*</span></th>
						<td>
							<input type="text"   placeholder="请输入听课地址" id="listen_address" name="listen_address" value="<?php if(isset($_SESSION[SESS_ASSESS]['classroom'])){echo $_SESSION[SESS_ASSESS]['classroom'];}else if(isset($attend)){echo $attend['listen_address'];}?>" dataType="*">
						</td>
						<th class="required">开课单位<span class="required">*</span></th>
						<td>
							<select name="course_units" id="course_units" dataType="*">
				               <option value="">请选择...</option>
				           		<?php foreach ($course_units as $k => $v): ?>		     
				                <option value="<?=$v?>" <?php if($v == estr($attend, 'course_units')) echo 'selected="selected"' ?>><?php echo $v ?></option>					                 
				               <?php endforeach ?>
				             </select>

						<!-- 	<input type="text"  placeholder="请输入开课单位" id="course_units" name="course_units" value="<?php if(isset($_SESSION[SESS_ASSESS]['course_units'])){echo $_SESSION[SESS_ASSESS]['course_units'];}else if(isset($attend)){echo $attend['course_units'];}?>" dataType="*"> -->
						</td>
					</tr>
					
					<tr>
						<th class="required">听课时间<span class="required">*</span></th>
						<td>
							<input type="text"  placeholder="请选择听课时间" id="listen_time" name="listen_time" value="<?php if(isset($attend['listen_time'])&&$attend['listen_time']!=null){echo date('Y-m-d H:i:s',$attend['listen_time']);}if(isset($class_detail['listen_time'])){echo date('Y-m-d H:i:s',$class_detail['listen_time']);}?>" dataType="*">
						</td>
						<th class="required">听课身份<span class="required">*</span></th>
							<td>

								<select name="role" id="AttendType" dataType="*">
					               <option value="">请选择...</option>
					           		<?php foreach ($AttendType as $k => $v): ?>		     
					                <option value="<?=$v['key']?>" <?php if($v['key'] == estr($attend, 'type')) echo 'selected="selected"' ?>><?php echo $v['value'] ?></option>					                 
					               <?php endforeach ?>
					             </select>
							</td>
					</tr>

					<th colspan="4" class="th-title">
						<i class="icon-dashboard"></i>听课内容
					</th>
					<tr>
						<th class="required">时间</th>
						<td>
							<input type="text"  readOnly id="recordid1" name="attend_record_time" value="<?php if(isset($attend_record) && $attend_record!=null){echo $attend_record[0]['time'];} ?>" dataType="*">
						</td>
						<th class="required">听课类型<span class="required">*</span></th>
							<td>
								<select name="listen_type" id="listen_type" dataType="*">
					               <option value="">请选择...</option>
					           		<?php foreach ($ListenType as $k => $v): ?>
									<option value="<?php echo $v ?>" <?php if($v == estr($attend, 'listen_type')) echo 'selected="selected"' ?>> <?php echo $v ?></option>	
									<?php endforeach ?>
					             </select>
							</td>				
					</tr>
					<tr>
						<th class="required">听课记录(可添加附件)</th>
						<td colspan="3">
							<textarea rows="5" name="attend_record_content" id="recordid3" ><?php if(isset($_SESSION[SESS_ASSESS]['record'])){echo $_SESSION[SESS_ASSESS]['record'];}else if($attend_record!=null){echo $attend_record[0]['commentary'];}?></textarea>
						</td>
					</tr>
					<tr>
						<th class="required">意见或建议</th>
						<td colspan="3">
							<textarea rows="5" name="attend5" id="attend5" ><?php if(isset($_SESSION[SESS_ASSESS]['advice'])){echo $_SESSION[SESS_ASSESS]['advice'];}else if(isset($attend)){echo $attend['advice'];} ?></textarea>
						</td>
					</tr>
			<!---------------------附件上传 ------------------>
					<tr class="title-tr">
                        <th colspan="4"><i class="icon-dashboard"></i>附件上传【选填】</th>
                    </tr>
                    <tr class="tab-item1">
							<td colspan="4">
								<table class='edit_table'>
								<!-- 	<tr>
									<td colspan="4" style="text-align: left!important;">
										<button class="pageItemButton" onclick="showImage(this)"><i class="icon-eye-open"></i>图片预览</button>
									</td>
								</tr> -->
									<tr>
										<td colspan="4" class="td_<?php echo UploadType::AttendImg[XPHEnum::Value] ?>">
											<div class="data-box">
											    <img class="add-img" data-type="<?php echo UploadType::AttendImg[XPHEnum::Value] ?>" src="<?php echo base_url() ?>public/home/images/add-structure.png" alt="" onclick="uploadDocument(this)">
											</div>
											<?php if(isset($attend_img)): ?>
											<?php foreach ($attend_img as $k => $v): ?>
											<div class="data-box data-box-banner">
												<i class="icon-remove-sign  del-icon" onclick="delDocument(this)"></i>
												<a href="<?php echo $v['img'] ?>" download=""><img src="<?php echo $v['img'] ?>" alt="" class="document-img"></a>
												<input type="hidden" name="attend_img[<?php echo UploadType::AttendImg[XPHEnum::Value] ?>][]" class="path" value="<?php echo $v['img'] ?>">
												<!-- <input type="hidden" name="icon[<?php echo UploadType::AttendImg[XPHEnum::Value] ?>][]" class="icon" value="<?php echo $v['icon'] ?>"> -->

												<!-- 前后 -->
												<div class="banner-prev" onclick="bannerPrev(this)"><i class="fa fa-angle-left" aria-hidden="true"></i></div>
												<div class="banner-next" onclick="bannerNext(this)"><i class="fa fa-angle-right" aria-hidden="true"></i></div>
											</div>	
											<?php endforeach ?>
											<?php endif; ?>

											<!-- 文件上传进度条 -->
											<div class="document-p">
												<div class="clearfix">
													<div class="col-xs-12 p-text" style="font-size: 12px; font-weight:bold; margin-bottom: 5px;">已上传（0%）</div>
												</div>

												<div class="progress progress-mini progress-striped active">
													<div style="width:0%" class="progress-bar progress-bar-success"></div>
												</div>
											</div>
										</td>
									</tr>
								</table>
							</td>
						</tr>

					<!---------------------教学水平 ------------------>
					<?php if(isset($attend)  && $attend['created']<1628240330):?>
						<th colspan="4" class="th-title">
						<i class="icon-dashboard"></i>教学能力
						</th>

						<tr style="background-color:  #FFF;">
							<td colspan="4">
								<div id="step3" style="width:90%;margin-left: 2%;background-color: #FFFFFF;">
										<form class="role" >
											
										<?php 
										if(isset($attend_teaching_content)){
											foreach ($attend_teaching_content as $k => $v) {
												// for($i=1;$i<=$attend_teaching_content[$k]['score'];$i++){
													$score=$v['score'];
												// }
												$question=$v['content'];
												$id=$v['key_index'];
												// $id=$k+1;
												echo "<div class='margin-bottom' ><div >".$id.".".$question.'【'.$v['score'][0].'分】'."<div class='question-bottom'></div><input type='hidden' name='attend_teaching_content[".$k."]'  value='".$question."'></div><input placeholder='  请打分' oninput='if(value>".$v['score'][0].")value=".$v['score'][0].";if(value<0)value=0;' onkeyup='if(new RegExp(/[^0-9]/g).test(value)==true)value=0;levelsum();' id='teachingLevel".$id."' name='teachingLevel[".$k."]' dataType='*'  type='text'  class='input' value='".$v['get_score']."'>";
												$select="";
												if($is_add==0){
													echo "<input type='hidden' value=".end($score)." name='attend_teaching_score[".$k."]'><input type='hidden' value=".$id." name='attend_teaching_index[".$k."]'><input type='hidden' value=".$v['list_id']." name='attend_teaching_list_id[".$k."]'></div>";
												}else{
													echo "<input type='hidden' value=".end($score)." name='attend_teaching_score[".$k."]'><input type='hidden' value=".$id." name='attend_teaching_index[".$k."]'><input type='hidden' value=".$v['list_id']." name='attend_teaching_list_id[".$k."]'></div>";
												}
												$num=count($score);
												$key=$num-1;
												// echo "<script>
												// var num=".$num.";
												// var optionlist=new Array();
												// for(var i=1;i<=num;i++){
												// 	optionlist.push(i);
												// }
												// new MobileSelect({
												// 	trigger: '#teachingLevel".$id."',
												// 	title: '请选择分数',
												// 	wheels: [
												// 	{data:optionlist}
												// 	],
												// 	position:[".$key."],//初始化定位 打开时默认选中的哪个 如果不填默认为0
												// 	callback:function(indexArr, data){
												// 		$('#teachingLevel".$id."').val(data[0]);
												// 		$('#teachingLevel".$id."').blur();
												// 		levelsum();
												// 	}
												// })</script>";

											}
										}
										?>
										<?php 
										if(isset($attend_teaching_implementation)){
											foreach ($attend_teaching_implementation as $k => $v) {	
												$score=array();				
												// for($i=1;$i<=$attend_teaching_implementation[$k]['score'];$i++){
													$score=$v['score'];
												// }
												// $question=(new TeachingImplementation)->show($k+1);
												$question=$question=$v['content'];
												$id=$v['key_index']+1;
												$id_1=$v['key_index']+2;
												// $id=$k+3;
												// $id_1=$k+4;
												echo "<div class='margin-bottom' ><div >".$id_1.".".$question.'【'.$v['score'][0].'分】'."<div class='question-bottom'></div><input type='hidden' name='attend_teaching_implementation_content[".$k."]'  value='".$question."'></div><input type='text' class='input' dataType='*'  id='teachingLevel".$id_1."'  name='teachingLevel[".$id."]' oninput='if(value>".$v['score'][0].")value=".$v['score'][0].";if(value<0)value=0;' onkeyup='if(new RegExp(/[^0-9]/g).test(value)==true)value=0;levelsum()' placeholder='  请打分' value='".$v['get_score']."'>";
												
												if($is_add==0){
													echo "<input type='hidden' value=".end($score)." name='attend_teaching_implementation_score[".$k."]'><input type='hidden' value=".$v['key_index']." name='key_index[".$k."]'><input type='hidden' value=".$v['key_index']." name='attend_teaching_implementation_index[".$k."]'><input type='hidden' value=".$v['list_id']." name='attend_teaching_implementation_list_id[".$k."]'></div>";
												}else{
													echo "<input type='hidden' value=".end($score)." name='attend_teaching_implementation_score[".$k."]'><input type='hidden' value=".$v['key_index']." name='key_index[".$k."]'><input type='hidden' value=".$v['key_index']." name='attend_teaching_implementation_index[".$k."]'><input type='hidden' value=".$v['list_id']." name='attend_teaching_implementation_list_id[".$k."]'></div>";
												}
												$num=count($score);
												$key=$num-1;
												// echo "<script>
												// var num=".$num.";
												// var optionlist=new Array();
												// for(var i=1;i<=num;i++){
												// 	optionlist.push(i);
												// }
												// new MobileSelect({
												// 	trigger: '#teachingLevel".$id_1."',
												// 	title: '请选择分数',
												// 	wheels: [
												// 	{data:optionlist}
												// 	],
												// 	position:[".$key."],//初始化定位 打开时默认选中的哪个 如果不填默认为0
												// 	callback:function(indexArr, data){
												// 		$('#teachingLevel".$id_1."').val(data[0]);
												// 		$('#teachingLevel".$id_1."').blur();
												// 		levelsum();
												// 	}
												// })</script>";					
											}
											
										}

										foreach ($attend_teaching_level as $k => $v) {
											echo "<input type='hidden' name='attend_teaching_level_item[".$k."]' value='".$v['item']."'>";
											echo "<input type='hidden' name='attend_teaching_level_remark[".$k."]' value='".$v['remark']."'>";
										}

										?>
									</form>
									<div class="teaching_level_sum"><?php if(isset($attend)){echo "◆当前总分为：<span class='teaching_level_sum1'>".$attend['teaching_level_score']."</span>";} ?></div>
								</div>
							</td>
							
						</tr>
						
						<th colspan="4" class="th-title">
							<i class="icon-dashboard"></i>学生状况
						</th>
		
						<tr style="background-color: #FFF;">
							<td colspan="4">
								<div id="step4" style="width:90%;margin-left: 2%;background-color: #FFFFFF;">		
									<form class="role">
										<div>
											<?php 
											if(isset($attend_student_status)){
												foreach ($attend_student_status as $k => $v) {	
													$score=array();				
													// for($i=1;$i<=$attend_student_status[$k]['score'];$i++){
														$score=$v['score'];
													// }
													// $question=(new StudentStatus)->show($k+1);
													$question=$v['content'];
													$id=$v['key_index'];
													// $id=$k+1;
													echo "<div class='margin-bottom' ><div >".$question.'【'.$v['score'][0].'分】'."<div class='question-bottom'></div><input type='hidden' name='attend_student_status[".$k."]'  value='".$question."'></div><input id='teachingEffect".$id."' name='teachingEffect[".$k."]'class='input' type='text' dataType='*' oninput='if(value>".$v['score'][0].")value=".$v['score'][0].";if(value<0)value=0;' onkeyup='if(new RegExp(/[^0-9]/g).test(value)==true)value=0;effectsum()' placeholder='  请打分' value='".$v['get_score']."'>";
													if($is_add==0){
														echo "<input type='hidden' value=".end($score)." name='attend_student_status_score[".$k."]'><input type='hidden' value=".$id." name='attend_student_status_index[".$k."]'><input type='hidden' value=".$v['list_id']." name='attend_student_status_list_id[".$k."]'></div>";
													}else{
														echo "<input type='hidden' value=".end($score)." name='attend_student_status_score[".$k."]'><input type='hidden' value=".$id." name='attend_student_status_index[".$k."]'><input type='hidden' value=".$v['list_id']." name='attend_student_status_list_id[".$k."]'></div>";
													}	
													$num=count($score);
													$key=$num-1;
													// echo "<script>
													// var num=".$num.";
													// var optionlist=new Array();
													// for(var i=1;i<=num;i++){
													// 	optionlist.push(i);
													// }
													// new MobileSelect({
													// 	trigger: '#teachingEffect".$id."',
													// 	title: '请选择分数',
													// 	wheels: [
													// 	{data:optionlist}
													// 	],
													// 	position:[".$key."],//初始化定位 打开时默认选中的哪个 如果不填默认为0
													// 	callback:function(indexArr, data){
													// 		$('#teachingEffect".$id."').val(data[0]);
													// 		$('#teachingEffect".$id."').blur();
													// 		effectsum();
													// 	}
													// })</script>";					
												}
												foreach ($attend_teaching_level as $k => $v) {
													echo "<input type='hidden' name='attend_student_status_item[".$k."]' value='".$v['item']."'>";
													echo "<input type='hidden' name='attend_student_status_remark[".$k."]' value='".$v['remark']."'>";
												}
											}
											?>	
										</div>
									</form>
									<div class="teaching_effect_sum"><?php if(isset($attend)){echo "◆当前总分为：<span class='teaching_effect_sum1'>".$attend['teaching_effect_score']."</span>";} ?></div>
								</div>					
							</td>
						</tr>
						<th colspan="4" class="th-title">
							<i class="icon-dashboard"></i>总评分
						</th>

						<tr style="background-color: #FFF;">
							<td colspan="4">
								<div id="step4" style="width:90%;margin-left: 2%;background-color: #FFFFFF;">									
									<div class="score">◆当前总评分为：<?php if(isset($attend['score'])){echo "<span class='score1'>".$attend['score']."</span>";} ?></div>
								</div>					
							</td>
						</tr>
					<?php else :?>
						<!-- 20219月新标准 -->
						<th colspan="4" class="th-title">
						<i class="icon-dashboard"></i>教学能力
						</th>

						<tr style="background-color:  #FFF;">
							<td colspan="4">
								<div id="step3" style="width:90%;margin-left: 2%;background-color: #FFFFFF;">
										<form class="role" >
											
										<?php 
										if(isset($attend_teaching_content)){
											
											$score_value_list=(new TeachingContent)->getDetail();
											$score_list_list=(new TeachingContent)->getRemark();
											foreach ($attend_teaching_content as $k => $v) {
												$score=$v['score'];
												$question=$v['content'];
												$id=$v['key_index'];
																							
												$score_value=$score_value_list[$k];											
												$score_list=$score_list_list[$k];
												$score_value1=implode(array_slice($score_list,array_search($score_value[2][1],$score_list),array_search($score_value[2][0],$score_list)-array_search($score_value[2][1],$score_list)+1),',');
												$score_value2=implode(array_slice($score_list,array_search($score_value[1][1],$score_list),array_search($score_value[1][0],$score_list)-array_search($score_value[1][1],$score_list)+1),',');
												$score_value3=implode(array_slice($score_list,array_search($score_value[0][1],$score_list),array_search($score_value[0][0],$score_list)-array_search($score_value[0][1],$score_list)+1),',');
												$checked1=$checked2=$checked3=$checkhtml='';
												if($v['get_score']!=''){
													if($v['get_score']>=$score_value[2][0] && $v['get_score']<=$score_value[2][1]){
														$checked1='checked';
														$checkhtml=$score_value[2][2];
													}else if($v['get_score']>=$score_value[1][0] && $v['get_score']<=$score_value[1][1]){
														$checked2='checked';
														$checkhtml=$score_value[1][2];
													}else if($v['get_score']>=$score_value[0][0] && $v['get_score']<=$score_value[0][1]){
														$checked3='checked';
														$checkhtml=$score_value[0][2];
													}
												}		
												if($k==1){
													
												}			
												$hide=$v['get_score']=='' ? 'hide1': '';

												echo "<div class='margin-bottom' ><div >".$id.".".$question.'【'.$v['score'][0].'分】'."<div class='question-bottom'></div><input type='hidden' name='attend_teaching_content[".$k."]'  value='".$question."'></div>

												<div class='radio_list'>
													<input type='radio' class='radio' name='attend_teaching_implementation_content_group$id' onchange='changeSorce(this)' data-name='teachingLevel$id' data-data='$score_value1' data-title='".$score_value[2][2]."' $checked1/><label  class='radio'>好</label>
													<input type='radio' class='radio'name='attend_teaching_implementation_content_group$id' onchange='changeSorce(this)' data-name='teachingLevel$id' data-data='$score_value2' data-title='".$score_value[1][2]."' $checked2/><label  class='radio'>中</label>
													<input type='radio' class='radio' name='attend_teaching_implementation_content_group$id' onchange='changeSorce(this)' data-name='teachingLevel$id' data-data='$score_value3' data-title='".$score_value[0][2]."' $checked3/><label  class='radio'>差</label> 
													<div class='radio_title'>$checkhtml</div>
												</div>
												
												<select id='teachingLevel".$id."' name='teachingLevel[".$k."]' class='$hide' onChange='levelsum()'>";
												if($checked1){
													foreach (explode(',',$score_value1) as $k1 => $v1) {
														if($v['get_score'] == $v1){
															echo "<option value='$v1' selected='selected'>$v1</option>";
														}else{
															echo "<option value='$v1'>$v1</option>";
														}
														
													}
												}else if($checked2){
													foreach (explode(',',$score_value2) as $k1 => $v1) {
														// echo "<option value='$v1'>$v1</option>";
														if($v['get_score'] == $v1){
															echo "<option value='$v1' selected='selected'>$v1</option>";
														}else{
															echo "<option value='$v1'>$v1</option>";
														}
													}
												}else if($checked3){
													foreach (explode(',',$score_value3) as $k1 => $v1) {
														// echo "<option value='$v1'>$v1</option>";
														if($v['get_score'] == $v1){
															echo "<option value='$v1' selected='selected'>$v1</option>";
														}else{
															echo "<option value='$v1'>$v1</option>";
														}
													}
												}
												echo "</select>";
												$select="";
												if($is_add==0){
													echo "<input type='hidden' value=".end($score)." name='attend_teaching_score[".$k."]'><input type='hidden' value=".$id." name='attend_teaching_index[".$k."]'><input type='hidden' value=".$v['list_id']." name='attend_teaching_list_id[".$k."]'></div>";
												}else{
													echo "<input type='hidden' value=".end($score)." name='attend_teaching_score[".$k."]'><input type='hidden' value=".$id." name='attend_teaching_index[".$k."]'><input type='hidden' value=".$v['list_id']." name='attend_teaching_list_id[".$k."]'></div>";
												}
												$num=count($score);
												$key=$num-1;
											}
										}
										?>
										<?php 
										if(isset($attend_teaching_implementation)){										
											$score_value_list=(new TeachingImplementation)->getDetail();
											$score_list_list=(new TeachingImplementation)->getRemark();
											foreach ($attend_teaching_implementation as $k => $v) {	
												$score=array();				
												$score=$v['score'];
												$question=$question=$v['content'];
												$id=$v['key_index']+1;
												$id_1=$v['key_index']+2;
												// $id=$k+3;
												// $id_1=$k+4;
												$score_value=$score_value_list[$k];											
												$score_list=$score_list_list[$k];
												$score_value1=implode(array_slice($score_list,array_search($score_value[2][1],$score_list),array_search($score_value[2][0],$score_list)-array_search($score_value[2][1],$score_list)+1),',');
												$score_value2=implode(array_slice($score_list,array_search($score_value[1][1],$score_list),array_search($score_value[1][0],$score_list)-array_search($score_value[1][1],$score_list)+1),',');
												$score_value3=implode(array_slice($score_list,array_search($score_value[0][1],$score_list),array_search($score_value[0][0],$score_list)-array_search($score_value[0][1],$score_list)+1),',');
												$checked1=$checked2=$checked3=$checkhtml='';
												if($v['get_score']){
													if($v['get_score']>=$score_value[2][0] && $v['get_score']<=$score_value[2][1]){
														$checked1='checked';
														$checkhtml=$score_value[2][2];
													}else if($v['get_score']>=$score_value[1][0] && $v['get_score']<=$score_value[1][1]){
														$checked2='checked';
														$checkhtml=$score_value[1][2];
													}else if($v['get_score']>=$score_value[0][0] && $v['get_score']<=$score_value[0][1]){
														$checked3='checked';
														$checkhtml=$score_value[0][2];
													}
												}					
												$hide=$v['get_score']=='' ? 'hide1': '';
												echo "<div class='margin-bottom' ><div >".$id_1.".".$question.'【'.$v['score'][0].'分】'."<div class='question-bottom'></div><input type='hidden' name='attend_teaching_implementation_content[".$k."]'  value='".$question."'></div>
												
												<div class='radio_list'>
												<input type='radio' class='radio' name='attend_teaching_implementation_content_group$id_1' onchange='changeSorce(this)' data-name='teachingLevel$id_1' data-data='$score_value1' data-title='".$score_value[2][2]."' $checked1/><label  class='radio'>好</label>
												<input type='radio' class='radio'name='attend_teaching_implementation_content_group$id_1' onchange='changeSorce(this)' data-name='teachingLevel$id_1' data-data='$score_value2' data-title='".$score_value[1][2]."' $checked2/><label  class='radio'>中</label>
												<input type='radio' class='radio' name='attend_teaching_implementation_content_group$id_1' onchange='changeSorce(this)' data-name='teachingLevel$id_1' data-data='$score_value3' data-title='".$score_value[0][2]."' $checked3/><label  class='radio'>差</label> 
												<div class='radio_title'>$checkhtml</div>
											</div>
											
											<select id='teachingLevel".$id_1."' class='$hide'  name='teachingLevel[".$id."]'  onchange='levelsum()'>";
												if($checked1){
													foreach (explode(',',$score_value1) as $k1 => $v1) {
														// echo "<option value='$v1'>$v1</option>";
														if($v['get_score'] == $v1){
															echo "<option value='$v1' selected='selected'>$v1</option>";
														}else{
															echo "<option value='$v1'>$v1</option>";
														}
													}
												}else if($checked2){
													foreach (explode(',',$score_value2) as $k1 => $v1) {
														// echo "<option value='$v1'>$v1</option>";
														if($v['get_score'] == $v1){
															echo "<option value='$v1' selected='selected'>$v1</option>";
														}else{
															echo "<option value='$v1'>$v1</option>";
														}
													}
												}else if($checked3){
													foreach (explode(',',$score_value3) as $k1 => $v1) {
														// echo "<option value='$v1'>$v1</option>";
														if($v['get_score'] == $v1){
															echo "<option value='$v1' selected='selected'>$v1</option>";
														}else{
															echo "<option value='$v1'>$v1</option>";
														}
													}
												}
												echo "</select>";
												
												if($is_add==0){
													echo "<input type='hidden' value=".end($score)." name='attend_teaching_implementation_score[".$k."]'><input type='hidden' value=".$v['key_index']." name='key_index[".$k."]'><input type='hidden' value=".$v['key_index']." name='attend_teaching_implementation_index[".$k."]'><input type='hidden' value=".$v['list_id']." name='attend_teaching_implementation_list_id[".$k."]'></div>";
												}else{
													echo "<input type='hidden' value=".end($score)." name='attend_teaching_implementation_score[".$k."]'><input type='hidden' value=".$v['key_index']." name='key_index[".$k."]'><input type='hidden' value=".$v['key_index']." name='attend_teaching_implementation_index[".$k."]'><input type='hidden' value=".$v['list_id']." name='attend_teaching_implementation_list_id[".$k."]'></div>";
												}
												$num=count($score);
												$key=$num-1;			
											}
											
										}

										foreach ($attend_teaching_level as $k => $v) {
											echo "<input type='hidden' name='attend_teaching_level_item[".$k."]' value='".$v['item']."'>";
											echo "<input type='hidden' name='attend_teaching_level_remark[".$k."]' value='".$v['remark']."'>";
										}

										?>
									</form>
									<div class="teaching_level_sum"><?php if(isset($attend)){echo "◆当前总分为：<span class='teaching_level_sum1'>".$attend['teaching_level_score']."</span>";} ?></div>
								</div>
							</td>
							
						</tr>
						
						<th colspan="4" class="th-title">
							<i class="icon-dashboard"></i>学生状况
						</th>
		
						<tr style="background-color: #FFF;">
							<td colspan="4">
								<div id="step4" style="width:90%;margin-left: 2%;background-color: #FFFFFF;">		
									<form class="role">
										<div>
											<?php 
											if(isset($attend_student_status)){				
												$score_value_list=(new StudentStatus)->getDetail();
												$score_list_list=(new StudentStatus)->getRemark();
												foreach ($attend_student_status as $k => $v) {	
													$score=array();				
													$score=$v['score'];
													$question=$v['content'];
													$id=$v['key_index'];
													// $id=$k+1;
													$score_value=$score_value_list[$k];											
													$score_list=$score_list_list[$k];
													$score_value1=implode(array_slice($score_list,array_search($score_value[2][1],$score_list),array_search($score_value[2][0],$score_list)-array_search($score_value[2][1],$score_list)+1),',');
													$score_value2=implode(array_slice($score_list,array_search($score_value[1][1],$score_list),array_search($score_value[1][0],$score_list)-array_search($score_value[1][1],$score_list)+1),',');
													$score_value3=implode(array_slice($score_list,array_search($score_value[0][1],$score_list),array_search($score_value[0][0],$score_list)-array_search($score_value[0][1],$score_list)+1),',');
													$checked1=$checked2=$checked3=$checkhtml='';
													if($v['get_score']){
														if($v['get_score']>=$score_value[2][0] && $v['get_score']<=$score_value[2][1]){
															$checked1='checked';
															$checkhtml=$score_value[2][2];
														}else if($v['get_score']>=$score_value[1][0] && $v['get_score']<=$score_value[1][1]){
															$checked2='checked';
															$checkhtml=$score_value[1][2];
														}else if($v['get_score']>=$score_value[0][0] && $v['get_score']<=$score_value[0][1]){
															$checked3='checked';
															$checkhtml=$score_value[0][2];
														}
													}					
													$hide=$v['get_score']=='' ? 'hide1': '';
													echo "<div class='margin-bottom' ><div >".$question.'【'.$v['score'][0].'分】'."<div class='question-bottom'></div><input type='hidden' name='attend_student_status[".$k."]'  value='".$question."'></div>
													
													<div class='radio_list'>
														<input type='radio' class='radio' name='attend_teaching_implementation_content_group$id' onchange='changeSorce(this)' data-name='teachingEffect$id' data-data='$score_value1' data-title='".$score_value[2][2]."' $checked1/><label  class='radio'>好</label>
														<input type='radio' class='radio'name='attend_teaching_implementation_content_group$id' onchange='changeSorce(this)' data-name='teachingEffect$id' data-data='$score_value2' data-title='".$score_value[1][2]."' $checked2/><label  class='radio'>中</label>
														<input type='radio' class='radio' name='attend_teaching_implementation_content_group$id' onchange='changeSorce(this)' data-name='teachingEffect$id' data-data='$score_value3' data-title='".$score_value[0][2]."' $checked3/><label  class='radio'>差</label> 
													<div class='radio_title'>$checkhtml</div>
												</div>
												
												<select id='teachingEffect".$id."' class='$hide' name='teachingEffect[".$k."]'  onchange='effectsum()'>";
													if($checked1){
														foreach (explode(',',$score_value1) as $k1 => $v1) {
															// echo "<option value='$v1'>$v1</option>";
															if($v['get_score'] == $v1){
																echo "<option value='$v1' selected='selected'>$v1</option>";
															}else{
																echo "<option value='$v1'>$v1</option>";
															}
														}
													}else if($checked2){
														foreach (explode(',',$score_value2) as $k1 => $v1) {
															// echo "<option value='$v1'>$v1</option>";
															if($v['get_score'] == $v1){
															echo "<option value='$v1' selected='selected'>$v1</option>";
															}else{
																echo "<option value='$v1'>$v1</option>";
															}
														}
													}else if($checked3){
														foreach (explode(',',$score_value3) as $k1 => $v1) {
															//echo "<option value='$v1'>$v1</option>";
															if($v['get_score'] == $v1){
															echo "<option value='$v1' selected='selected'>$v1</option>";
															}else{
																echo "<option value='$v1'>$v1</option>";
															}
														}
													}
													echo "</select>";
													if($is_add==0){
														echo "<input type='hidden' value=".end($score)." name='attend_student_status_score[".$k."]'><input type='hidden' value=".$id." name='attend_student_status_index[".$k."]'><input type='hidden' value=".$v['list_id']." name='attend_student_status_list_id[".$k."]'></div>";
													}else{
														echo "<input type='hidden' value=".end($score)." name='attend_student_status_score[".$k."]'><input type='hidden' value=".$id." name='attend_student_status_index[".$k."]'><input type='hidden' value=".$v['list_id']." name='attend_student_status_list_id[".$k."]'></div>";
													}	
													$num=count($score);
													$key=$num-1;			
												}
												foreach ($attend_teaching_level as $k => $v) {
													echo "<input type='hidden' name='attend_student_status_item[".$k."]' value='".$v['item']."'>";
													echo "<input type='hidden' name='attend_student_status_remark[".$k."]' value='".$v['remark']."'>";
												}
											}
											?>	
										</div>
									</form>
									<div class="teaching_effect_sum"><?php if(isset($attend)){echo "◆当前总分为：<span class='teaching_effect_sum1'>".$attend['teaching_effect_score']."</span>";} ?></div>
								</div>					
							</td>
						</tr>

						<th colspan="4" class="th-title">
							<i class="icon-dashboard"></i>总评分
						</th>

						<tr style="background-color: #FFF;">
							<td colspan="4">
								<div id="step4" style="width:90%;margin-left: 2%;background-color: #FFFFFF;">									
									<div class="score">◆当前总评分为：<?php if(isset($attend['score'])){echo "<span class='score1'>".$attend['score']."</span>";} ?></div>
								</div>					
							</td>
						</tr>


					<?php endif?>
					<?php if(isset($attend) && $attend['created']<1628240330):?>
					<th colspan="4" class="th-title">
						<i class="icon-dashboard"></i>其他
					</th>

					<tr style="background-color: #FFF;">					
						<td colspan="4">
							
							<div id="step5" style="width:90%;margin-left: 2%;background-color: #FFFFFF;" >
								<form class="role">
									<div>
										<div class='title'>◆教学准备开展情况(可选)</div>	
										<?php 
										if(isset($attend_teaching_readiness)){
											foreach ($attend_teaching_readiness as $k => $v) {			
												$item=$k+1;				
												echo "<div class='div_border1 '>				
												<div class=' tag_name   'style='width: 70px' >".$attend_teaching_readiness[$k]['item']."："."<input type='hidden' name='attend_teaching_readiness_content[".$k."]' value='".$attend_teaching_readiness[$k]['item']."'></div>
												<div class='tag_val 'style='margin-top:0' ><input name='attend_teaching_readiness_option[".$k."]' type='hidden' value='".$attend_teaching_readiness[$k]['option']."'>";
												$option=explode(",",$attend_teaching_readiness[$k]['option']);

												foreach ($option as $k1 => $v1) {
													if($v['check_value']==$v1){
														$checked="checked";
													}else{
														$checked="";
													}						
													echo "<div class='radio'><label ><input name='teachingReadiness[".$k."]' ".$checked." type='radio' value='".$v1."'/><span >".$v1."</span></label></div><div class='div_float_left'></div>";
													
													
													
												}
												// exit;
												echo "</div></div>";
											}
										}
										?>
										<!-- <?php 
										if(isset($attend_teaching_readiness)){
											foreach ($attend_teaching_readiness as $k => $v) {			
												$item=$k+1;				
												echo "<div class='div_border1 div_float_left'>				
												<div class=' tag_name div_float_left 'style='width: 70px' >".$attend_teaching_readiness[$k]['item']."<input type='hidden' name='attend_teaching_readiness_content[".$k."]' value='".$attend_teaching_readiness[$k]['item']."'></div>
												<div class='div_float_left col-xs-3 tag_val'style='margin-top:0' >";
												$option=explode(",",$attend_teaching_readiness[$k]['option']);
												$select="<select name='teachingReadiness[".$k."]'><option value='-1'>请选择</option>";
												$select_option="";
												foreach ($option as $k1 => $v1) {
													$select_option.="<option value=".$v1.">".$v1."</option>";							
												}
												echo $select.$select_option."</select></div></div>";
											}
										}
										?> -->
										
									</div>
								</form>
							</div> 
						</td>
					</tr>

					<th colspan="4" class="th-title">
						<i class="icon-dashboard"></i>完成
					</th>

					<tr style="background-color: #FFF;">					
						<td colspan="4">
								<div id="step6" class="form-group"  style="width:90%;margin-left: 2%;background-color: #FFFFFF;margin-top: 20px;">		
								<form action="">
									<div>
										<div class='title'>◆学生常态(可选)</div>		
										<?php 
										foreach ($attend_students_norm as $k => $v) {
											$item=$k+1;
											if($k==3){
												echo "<input type='hidden' name='attend_students_norm_item[".$k."]' value='".$v['item']."'><input type='hidden' placeholder='请输入".$v['item']."' id='studentsNorm".$item."' name='studentsNorm[".$k."]' value='";
												if($v['check_value']==null){
													echo "0'>";
												}else{
													echo $v['check_value']."'>";
												}
												continue;
											}
											echo "<div class='div_border row'>
											<div class='col-xs-1 tag_name'>".$v['item']."<input type='hidden' name='attend_students_norm_item[".$k."]' value='".$v['item']."'></div>
											<div class='col-xs-4 tag_val  ' >
											<input type='number' placeholder='请输入".$v['item']."' id='studentsNorm".$item."' name='studentsNorm[".$k."]' value='".$v['check_value']."'>
											</div>
											</div>";
										}
										?>
										<div class='title' style="margin-top: 20px;">◆其他(必选)</div>		
										<div class="div_border1 div_float_left">
											<div class=" tag_name tag_name2  div_float_left">课堂设施设备完好情况：</div>
											<div class="div_border1-contanier">
												<?php 					

												$item=explode(",",$attend_classroom_facilities['option']);
												
												
												foreach ($item as $k => $v) {
													$checked="";
													if($attend_classroom_facilities['check_value']==$v){
														$checked="checked";
													}
													// if($k==0){
													// 	echo "<div class='radio' style='margin-top:10px;margin-bottom:20px' >
													// 	<label style=''><input id='item13' type='radio' value='".$v."' name='classroom_facilities' style='margin-left: -28px;margin-top: 2px'".$checked.">".$v."</label>
													// 	</div>";
													// }else{
													echo "<div class='radio'>
													<label style=''><input id='item13' type='radio'  dataType='*' value='".$v."' name='classroom_facilities' ".$checked.">".$v."</label></div><div class='div_float_left'></div>";
													// }
													echo "<input type='hidden' name='attend_classroom_facilities_option' value='".$attend_classroom_facilities['option']."'>";
												}			


												?>
											</div>
										</div>
										<div class="div_border1 div_float_left">
											<div class=" tag_name tag_name2 div_float_left">课堂环境卫生情况：</div>
											<div class="div_border1-contanier">
												<?php 
												$item=explode(",",$attend_classroom_environmental['option']);

												foreach ($item as $k => $v) {
													$checked="";
													if($attend_classroom_environmental['check_value']==$v){
														$checked="checked";
													}
													// if($k==0){
													// 	echo "<div class='radio' style='margin-top:10px;margin-bottom:20px' >
													// 	<label style=''><input id='item14' type='radio' value='".$v."' name='classroom_environmental' style='margin-left: -16px;margin-top: 2px'".$checked.">".$v."</label>
													// 	</div>";
													// }else{
													echo "<div class='radio'>
													<label style=''><input id='item14' type='radio'  dataType='*' value='".$v."' name='classroom_environmental'".$checked.">".$v."</label>
													</div>";
													// }

												}
												echo "<input type='hidden' name='classroom_environmental_option' value='".$attend_classroom_environmental['option']."'>";
												?>
											</div>
										</div>				

									</form>

								</div>
							</div>
						</td>
					</tr>
					<?php endif?>
				</table>
			</form>
		</div>
	</div>
</body>

<script>
	function changeForm() { 
		if($('.input-style').hasClass("hide")){
			console.log('show input ')
			//$('#class_name2').val("");
			$('.select-style').addClass("hide");
			$('.input-style').removeClass("hide");

			$("#class_name1").removeAttr("dataType");
			$("#class_name2").attr("dataType","*");

			$("#class_name2").removeAttr('disabled');
			$("#class_name1").attr("disabled",true);
			//$('.input-style input').val("")
		}else {
			console.log('show select ')
			$('.select-style').removeClass("hide");
			$('.input-style').addClass("hide");

			$("#class_name2").removeAttr("dataType");
			$("#class_name1").attr("dataType","*");

			$("#class_name1").removeAttr('disabled');
			$("#class_name2").attr("disabled",true);
		}
	}
</script>


</html>
